import Layout from '@/layout'

export default [
  // 学部管理
  {
    path: '/grade',
    component: Layout,
    redirect: 'grade',
    meta: {
      title: '学部管理',
      icon: ' '
    },
    children: [
      {
        path: 'grade',
        component: () => import('@/views/grade/index'),
        name: 'Grade',
        meta: { title: '学部管理' }
      }
    ]
  },
  // 班级管理
  {
    path: '/class',
    component: Layout,
    redirect: 'class',
    meta: {
      title: '班级管理',
      icon: ' '
    },
    children: [
      {
        path: 'class',
        component: () => import('@/views/class/index'),
        name: 'Class',
        meta: { title: '班级管理' }
      }
    ]
  },
  // 门卫管理
  {
    path: '/janitor',
    component: Layout,
    redirect: 'janitor',
    meta: {
      title: '门卫管理',
      icon: ' '
    },
    children: [
      {
        path: 'janitor',
        component: () => import('@/views/janitor/index'),
        name: 'Janitor',
        meta: { title: '门卫管理' }
      }
    ]
  },
  // 老师管理
  {
    path: '/teacher',
    component: Layout,
    redirect: 'teacher',
    meta: {
      title: '老师管理',
      icon: ' '
    },
    children: [
      {
        path: 'teacher',
        component: () => import('@/views/teacher/index'),
        name: 'Teacher',
        meta: { title: '老师管理' }
      }
    ]
  },
  // 学生管理
  {
    path: '/student',
    component: Layout,
    redirect: 'student',
    meta: {
      title: '学生管理',
      icon: ' '
    },
    children: [
      {
        path: 'student',
        component: () => import('@/views/student/index'),
        name: 'Student',
        meta: { title: '学生管理' }
      }
    ]
  },
  // 家长管理
  {
    path: '/patriarch',
    component: Layout,
    redirect: 'patriarch',
    meta: {
      title: '家长管理',
      icon: ' '
    },
    children: [
      {
        path: 'patriarch',
        component: () => import('@/views/patriarch/index'),
        name: 'Patriarch',
        meta: { title: '家长管理' }
      }
    ]
  },
  // 请假管理
  {
    path: '/leavet',
    component: Layout,
    redirect: 'leavet',
    meta: {
      title: '请假管理',
      icon: ' '
    },
    children: [
      {
        path: 'leavet',
        component: () => import('@/views/leavet/index'),
        name: 'Leavet',
        meta: { title: '请假管理' }
      }
    ]
  },
  // 家长入校
  {
    path: '/chschool',
    component: Layout,
    redirect: 'chschool',
    meta: {
      title: '家长入校',
      icon: ' '
    },
    children: [
      {
        path: 'chschool',
        component: () => import('@/views/chschool/index'),
        name: 'Chschool',
        meta: { title: '家长入校' }
      }
    ]
  }
]
